package com.carlinfo.users.pojo;

/**
 * 用户的枚举
 * 将一些整数表示不同类型的字段都列出来
 */
public enum AUsersEnum {
    /* 定义枚举项 */
    /*邮箱状态:0:未验证,1:验证成功*/
    EMAIL_STATUS_UNVERFY("未验证",Byte.valueOf("0")),
    EMAIL_STATUS_VERFY_SCUCED("验证成功",Byte.valueOf("1")),
    /*手机状态:0:未验证,1:验证成功*/
    PHONE_STATUS_UNVERFY("未验证",Byte.valueOf("0")),
    PHONE_STATUS_VERFY_SCUCED("验证成功",Byte.valueOf("1")),
    /*身份认证:0:未认证,1:认证成功,2:认证失败*/
    BODY_TYPE_UNVERFY("未验证",Byte.valueOf("0")),
    BODY_TYPE_VERFY_SCUCED("认证成功",Byte.valueOf("1")),
    BODY_TYPE_VERFY_FAILED("认证失败",Byte.valueOf("2")),
    /*状态:0:禁用,1:启用*/
    STATUS_DISABLE("禁用",Byte.valueOf("0")),
    STATUS_ENABLES("启用",Byte.valueOf("1"));
    private String name;
    private byte status;

    private AUsersEnum(String name,byte status) {
        this.name = name;
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public byte getStatus() {
        return status;
    }

    public void setStatus(byte status) {
        this.status = status;
    }
}
